package net.huashitong.ssydt.provider.pk.mapper;


import net.huashitong.ssydt.base.dao.LongMapper;
import net.huashitong.ssydt.pk.entity.SsPkYmdxMyRank;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SsPkYmdxMyRankMapper extends LongMapper<SsPkYmdxMyRank> {


    SsPkYmdxMyRank getByMatchRecordIdWithUserId(SsPkYmdxMyRank ssPkYmdxMyRank);

    /**
     * 根据规则统计排名
     *
     * @param ssPkYmdxMyRank
     * @return
     */
    int getRankByHighestScoreDescAndHighestGmtModifiedAsc(SsPkYmdxMyRank ssPkYmdxMyRank);

    List<SsPkYmdxMyRank> findHighestScoreDescByMatchRecordId(Long matchRecordId);
}